home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / dvrun.arc / DVRUN.DOC < prev    next >
Text File  |  1989-03-02  |  2KB  |  46 lines

  1. DVRUN.BIN
  2. Copyright (C) 1989 George A. Stanislav
  3. All rights reserved
  4.  
  5. This is a simple utility to let you open DESQview windows from a batch file.
  6. The program in itself is "incomplete" - you have to create your own program
  7. which you can run from a batch file.
  8.  
  9. To create such a program is easy - first install any program you want to run
  10. in DESQview, using DESQview's Append Program option. Assuming you will want
  11. the program run without your intervention, you will probably say YES to the
  12. Close on Exit question. Alernately, you may want to say NO, install a batch
  13. file whose last line says EXIT.
  14.  
  15. Having done that, you will find a .DVP file in your DESQview directory. The
  16. filename will consist of the two characters you use to call the program from
  17. DESQview menu, a dash, and PIF.DVP.
  18.  
  19. For example if you install Opus' oMMM program and tell DESQview to run it
  20. when you choose OM, the filename will be OM-PIF.DVP.
  21.  
  22. Now, copy DVRUN.BIN and the .DVP file to a .COM file which you will call from
  23. your batch files. Note the DVRUN.BIN must be the first, the .DVP file second.
  24. You also need to use the /B flag of COPY command.
  25.  
  26. Following the above example, you may want to create OM.COM like this:
  27.  
  28.         COPY /B DVRUN.BIN + OM-PIF.DVP OM.COM
  29.  
  30. Now place OM.COM on the PATH of your system. Whenever you run a batch file
  31. which contains the line:
  32.  
  33.         OM
  34.  
  35. DESQview will open a window and run oMMM in it while continuing the calling
  36. batch file processing and running the next program in the batch file.
  37.  
  38. This will work ONLY with the NEW .DVP files introduced with DESQview 2. You
  39. will know you have the correct .DVP file if its size is 416 bytes.
  40.  
  41. Note: If you try to run the program outside of DESQview, it will tell you
  42. DESQview is not loaded and exit with the errorlevel 1. In DESQview it will
  43. open the window and exit with the errorlevel 0.
  44.  
  45.  
  46.